package com.fortune.rainshinecommon.model;

import java.math.BigDecimal;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import com.baomidou.mybatisplus.annotations.TableName;
import com.fortune.rainshinecommon.base.BaseModel;

/**
 * @program: rainShine
 * @description: 产品类
 * @author: tangyn
 * @create: 2019-02-21
 **/
@TableName("products")
public class ProductModel extends BaseModel{

	private static final long serialVersionUID = 2711292159590950651L;

    /**
     * 产品名称
     */
    @NotBlank(message = "产品名称不能为空")
    @Size(max = 200, message = "产品名称不能超过200字")
    private String productName;
    /**
     * 产品产地
     */
    @Size(max = 50, message = "产品产地不能超过50字")
    private String placeOrigin;
    /**
     * 产品特点
     */
    @Size(max = 200, message = "产品特点不能超过200字")
    private String characteristic;
    /**
     * 产品功效
     */
    @Size(max = 500, message = "产品功效不能超过500字")
    private String effect;
    /**
     * 产品图片
     */
    private String productPic;
    
    /**
     * 起购数量
     */
    private int purchaseNum;
    /**
     * 总店展示给招商的价格
     */
    private BigDecimal productPrice;
    /**
     * 是否在售（1：在售，0：下架） 默认 1
     */
    private Byte saleStatus;
    /**
     * 是否在首页展示（1：展示，0：不展示） 默认 0
     */
    private Byte homeShow;
    /**
     * 招商展示给门店的价格
     */
    private BigDecimal zsPrice;
    /**
     * 门店销售的价格
     */
    private BigDecimal shopPrice;
    /**
     * 是否对外出售（1：出售，0：不出售）
     */
    private Byte isSale;

    public BigDecimal getZsPrice() {
        return zsPrice;
    }

    public void setZsPrice(BigDecimal zsPrice) {
        this.zsPrice = zsPrice;
    }

    public BigDecimal getShopPrice() {
        return shopPrice;
    }

    public void setShopPrice(BigDecimal shopPrice) {
        this.shopPrice = shopPrice;
    }

    public Byte getIsSale() {
        return isSale;
    }

    public void setIsSale(Byte isSale) {
        this.isSale = isSale;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductPic() {
        return productPic;
    }

    public void setProductPic(String productPic) {
        this.productPic = productPic;
    }

    public BigDecimal getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(BigDecimal productPrice) {
        this.productPrice = productPrice;
    }

    public Byte getSaleStatus() {
        return saleStatus;
    }

    public void setSaleStatus(Byte saleStatus) {
        this.saleStatus = saleStatus;
    }

    public Byte getHomeShow() {
        return homeShow;
    }

    public void setHomeShow(Byte homeShow) {
        this.homeShow = homeShow;
    }

	public String getPlaceOrigin() {
		return placeOrigin;
	}

	public void setPlaceOrigin(String placeOrigin) {
		this.placeOrigin = placeOrigin;
	}

	public String getCharacteristic() {
		return characteristic;
	}

	public void setCharacteristic(String characteristic) {
		this.characteristic = characteristic;
	}

	public String getEffect() {
		return effect;
	}

	public void setEffect(String effect) {
		this.effect = effect;
	}

	public int getPurchaseNum() {
		return purchaseNum;
	}

	public void setPurchaseNum(int purchaseNum) {
		this.purchaseNum = purchaseNum;
	}
}
